package com.five.wisdomEat.service;

import com.five.wisdomEat.entity.ResponseMessage;
import com.five.wisdomEat.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentService {
    @Autowired
    private PaymentMapper mapper;
    public ResponseMessage selectPaymentList(){
        ResponseMessage message = new ResponseMessage();
        message.setMessage("查询成功");
        message.setSuccess(true);
        message.setData(mapper.selectPaymentList());
        message.setTotal(message.getData().size());
        return message;
    }
}
